import type { UserTask,DocForm } from "./workflow"

export interface LeaderSelectResult{
    list:string[]
    sendSms:boolean
}

export interface BottomBtnProp {
    showSave?:boolean
    showSubmit?:boolean
    showAddRemark?:boolean
    showRedirectLog?:boolean
    showDone?:boolean
    showRead?:boolean
    submitBtnText?:string
    showCommentInput?:boolean
    commentValue?:string
    taskId?:number
    task?:UserTask
    formId?:number
    docForm?:DocForm
    showSubmitDepart?:boolean
    submitDepartBtnText?:string
    showSubmitLeader?:boolean
    redirectLeaderText?:string
    showSubmitLeaderRead?:boolean
    showSubmitMainLeader?:boolean //主要领导
    showRedirectDepart?:boolean
    showNotifyBtn?:boolean
    showFinishBtn?:boolean
    showLeaderMeetingBtn?:boolean    
    showRoleAuditForSendFileBtn?:boolean
    needConfirm?:boolean//提交前是否确认
    confirmText?:string //确认提醒文字
    check?:boolean //提交前后台是否校验
    submitParam?:SubmitParam
    showVip?:boolean
    redirectDepartText?:string
    showNotifyLeaders?:boolean //希望知会的领导
    showHandle?:boolean
    showSubmitGJC?:boolean //转发国际处，请假
    showFavaBtn?:boolean //收藏夹按钮
    showReject?:boolean
    redirectLogBtnText?:string
}


export interface SubmitParam{
    /**
     * 按简明流程处理
     */
    schfileSimpleProcess?:boolean

    /**
     * 会签单位
     */
    schfileRelatedDeparts?:string
}

export interface IUser{
    id?:string
    perms?:string[]
    name?:string
}

export enum PermissionValues{
    CAR_QUERY = "car_query",
    LEAVE_QUERY = "leave_query",
    PERSON_QUERY = "person_query"
}